import React from "react";

interface IEditCompWrapperProps {
    top?: number;
    left?: number;
    className?: string;
    onClick?: (e: any) => void;
}
const EditCompWrapper: React.FC<IEditCompWrapperProps> = ({ children, top, left, className, onClick }) => {

    return <div className={`edit-comp-wrapper ${className}`} style={{position: "absolute", top: top || 0, left: left || 0}} onClick={onClick}>
        {children}
    </div>
}


export default EditCompWrapper;